import store from '@/store/index.js'

export async function uni_scanCode() {
	return new Promise((resolve, reject) => {
		uni.scanCode({
			success: function (res) {
				console.log('条码类型：' + res.scanType);
				console.log('条码内容：' + res.result);
				resolve(res.result)
			}
		});
	});
}
